package com.centaline.androidsalesblog.model.businissobject;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 学校对应的小区
 * Created by guilin on 16/3/1.
 */
public class SchoolEstateInfoBo implements Parcelable {

    private String EstateName;
    private String EstateCode;
    private int PostCount;

    public String getEstateName() {
        return EstateName;
    }

    public void setEstateName(String estateName) {
        EstateName = estateName;
    }

    public String getEstateCode() {
        return EstateCode;
    }

    public void setEstateCode(String estateCode) {
        EstateCode = estateCode;
    }

    public int getPostCount() {
        return PostCount;
    }

    public void setPostCount(int postCount) {
        PostCount = postCount;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.EstateName);
        dest.writeString(this.EstateCode);
        dest.writeInt(this.PostCount);
    }

    public SchoolEstateInfoBo() {
    }

    protected SchoolEstateInfoBo(Parcel in) {
        this.EstateName = in.readString();
        this.EstateCode = in.readString();
        this.PostCount = in.readInt();
    }

    public static final Parcelable.Creator<SchoolEstateInfoBo> CREATOR = new Parcelable.Creator<SchoolEstateInfoBo>() {
        public SchoolEstateInfoBo createFromParcel(Parcel source) {
            return new SchoolEstateInfoBo(source);
        }

        public SchoolEstateInfoBo[] newArray(int size) {
            return new SchoolEstateInfoBo[size];
        }
    };
}
